import {Link, Outlet, useParams} from 'react-router-dom';

const Login = () => {
    
    return (
        <div>
            <h1>Login 一级路由</h1>
            <Link to='/student' >学生</Link><br/>
            <Link to='/teacher' >老师</Link><br/>
            <Link to='/admin' >管理员</Link><br/>
            <Outlet />
            <Link to='/article/1'>登录成功跳转到文章界面</Link>
        </div>
    );
}

export default Login;